# coding = utf-8

from django.urls import path
from rest_framework.routers import DefaultRouter

from points.api.views import RechargeViewSet, PointTypeViewSet, PointConsumeViewSet, PointTypeListAPIView, \
    CustomerPointsListAPIView

router = DefaultRouter()
# 后台
router.register(r'point_type', PointTypeViewSet, basename="api-point-type")
router.register(r'recharge', RechargeViewSet, basename="api-recharge")
router.register(r'consume', PointConsumeViewSet, basename="api-point-consume")


urlpatterns = [
    path('point_type_list/', PointTypeListAPIView.as_view(), name="api-point-type-list"),
    path('customer_points_list/', CustomerPointsListAPIView.as_view(), name="api-customer-point-list"),
]
urlpatterns += router.urls
